package cn.kgc.springboot.service.impl;

import cn.kgc.springboot.entity.RolePer;
import cn.kgc.springboot.mapper.RolePerMapper;
import cn.kgc.springboot.service.RolePerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/8/12
 */
@Service
public class RolePerServiceImpl implements RolePerService {

    @Autowired
    private RolePerMapper rolePerMapper;
    @Override
    public List<RolePer> selectByRoleId(Integer roleId) {

        List<RolePer> rolePers = rolePerMapper.selectByRoleId(roleId);
        return rolePers;
    }
}
